home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / os.531 < prev    next >
Text File  |  1992-02-06  |  791b  |  17 lines

  1. Q: I added a new executable to /usr/local/bin.  Until I logout and log back in, I'm unable to access the new executable by name from the command line.  Why?  How do I fix this?
  2.  
  3. A: Assuming /usr/local/bin is in your PATH environment variable, run the C-Shell command
  4.  
  5.     rehash
  6.  
  7. From the csh(1) man page, this causes the internal hash table of the contents of the directories in the path variable to be recomputed.  This is needed if new commands are added to directories in the path while you are logged in.  This should only be necessary if you add commands to one of your own directories, or if a systems programmer changes the contents of one of the system directories.
  8.  
  9. Note that there's no analog to rehash in the Bourne shell, nor is one needed.
  10.  
  11. QA531
  12.  
  13. Valid for 1.0 
  14. Valid for 2.0 
  15.  
  16.  
  17.